package com.cornergj.model;

public class UserQuestion implements Entity {
	
	private static final long serialVersionUID = 1L;
	
	/** id */
	protected Integer id;
	
	/** 邮箱 */
	protected String email;
	
	/** 是否已读 */
	protected Integer isread;
	
	/** 姓名 */
	protected String name;
	
	/** 电话 */
	protected String phone;
	
	/** 问题 */
	protected String question;
	
	/** 性别 */
	protected Integer sex;
	
 	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getEmail() {
		return email;
	}
	
	public void setEmail(String email) {
		this.email = email;
	}
	
	public Integer getIsread() {
		return isread;
	}
	
	public void setIsread(Integer isread) {
		this.isread = isread;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getPhone() {
		return phone;
	}
	
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String getQuestion() {
		return question;
	}
	
	public void setQuestion(String question) {
		this.question = question;
	}
	
	public Integer getSex() {
		return sex;
	}
	
	public void setSex(Integer sex) {
		this.sex = sex;
	}
	
 	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("id = ").append(id).append(", ");
		builder.append("email = ").append(email).append(", ");
		builder.append("isread = ").append(isread).append(", ");
		builder.append("name = ").append(name).append(", ");
		builder.append("phone = ").append(phone).append(", ");
		builder.append("question = ").append(question).append(", ");
		builder.append("sex = ").append(sex);
		return builder.toString();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		UserQuestion other = (UserQuestion) obj;
		if (id == null) {
			if (other.id != null) {
				return false;
			}
		} else if (!id.equals(other.id)) {
			return false;
		}
		return true;
	}

}